import Ember from 'ember';

export default Ember.Controller.extend({
  constants: Constants,
  mainController: Ember.inject.controller('business.mainpage'),
  dateService: Ember.inject.service("date-service"),
  store: Ember.inject.service("store"),
  dataLoader: Ember.inject.service("data-loader"),
  actions:{
    changeStatus(){
      var consult=this.store.peekRecord('consultinfo',this.get('consultId'));
      let status = this.get("dataLoader").findDict(Constants.consultStatus3);
      consult.set("consultStatus",status);
      consult.save().then(function(){
      });
    },
  }
});
